package com.atguigu.daedlock;

public class Lock01 {
    public synchronized void lock(){
        try {
            Thread.sleep(1000);
        } catch (InterruptedException e) {
            throw new RuntimeException(e);
        }
        System.out.println("我是锁一");
    }
}
